home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / Shout3d_runtime / codebase / models / animTests / tcbposbox.s3d < prev    next >
Text File  |  2000-05-30  |  3KB  |  102 lines

  1. DEF world-TIMER TimeSensor {
  2.     loop TRUE
  3.     cycleInterval 3.333
  4. }
  5. DEF Box01 Transform {
  6.     translation -100 0 100
  7.     children [
  8.         Shape {
  9.             appearance [
  10.                 MultiAppearance {
  11.                     material Material {
  12.                         diffuseColor 0.6039 0.6039 0.898
  13.                     }
  14.                 }
  15.             ]
  16.             geometry MultiMesh {
  17.                 coord Coordinate {
  18.                     point [
  19.                         -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  20.                     ]
  21.                 }
  22.                 coordIndex [
  23.                     0 2 3 -1 3 1 0 -1 4 5 7 -1 7 6 4 -1 0 1 5 -1 5 4 0 -1 1 3 7 -1 7 5 1 -1 3 2 6 -1 6 7 3 -1
  24.                     2 0 4 -1 4 6 2 -1
  25.                 ]
  26.                 edgeVisibleIndex [
  27.                     1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1 1 1 0 -1
  28.                     1 1 0 -1 1 1 0 -1
  29.                 ]
  30.                 smoothingIndex [
  31.                     2 -1 2 -1 3 -1 3 -1 4 -1 4 -1 5 -1 5 -1 6 -1 6 -1 7 -1 7 -1
  32.                 ]
  33.                 appearanceIndex [
  34.                     1 1 0 0 4 4 3 3 5 5 2 2
  35.                 ]
  36.                 textureMappings [
  37.                 ]
  38.             }
  39.         }
  40.         DEF Box01-POS-INTERP TCBVecInterpolator {
  41.             key [
  42.                 0 0.5 1
  43.             ]
  44.             keyValue [
  45.                 -100 0 100 0 0 0 0 0
  46.                 -100 0 -100 -0.68 0.056 -0.852 1 1
  47.                 100 0 -100 0 0 0 0 0
  48.             ]
  49.         }
  50.         ROUTE world-TIMER.fraction_changed TO Box01-POS-INTERP.set_fraction
  51.         ROUTE Box01-POS-INTERP.value_changed TO Box01.set_translation
  52.     ]
  53. }
  54. DEF Box02 Transform {
  55.     translation -100 0 100
  56.     children [
  57.         Shape {
  58.             appearance Appearance {
  59.                 material Material {
  60.                     emissiveColor 0 0 1
  61.                 }
  62.             }
  63.             geometry IndexedLineSet {
  64.                 coord Coordinate {
  65.                     point [
  66.                         -15 0 15 15 0 15 -15 0 -15 15 0 -15 -15 30 15 15 30 15 -15 30 -15 15 30 -15
  67.                     ]
  68.                 }
  69.                 coordIndex [
  70.                     0 2 3 -2 3 1 0 -2 4 5 7 -2 7 6 4 -2 0 1 5 -2 5 4 0 -2 1 3 7 -2 7 5 1 -2 3 2 6 -2 6 7 3 -2
  71.                     2 0 4 -2 4 6 2 -2
  72.                 ]
  73.             }
  74.         }
  75.         DEF Box02-POS-INTERP PositionInterpolator {
  76.             key [
  77.                 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9
  78.                 0.95 1
  79.             ]
  80.             keyValue [-100 0 100 -130.1 0 45.84 -151.5 0 0.3429 -162 0 -35.31 -162.1 0 -61.35 -153.9 0 -78.96
  81.                 -140.6 0 -89.83 -125.7 0 -95.81 -112.4 0 -98.64 -103.2 0 -99.74 -100 0 -100 -97.08 0 -100.3
  82.                 -88.47 0 -101 -74.67 0 -102.1 -56.41 0 -103.2 -34.63 0 -104.3 -10.3 0 -105 15.68 0 -105
  83.                 42.68 0 -104.1 70.58 0 -102.4 100 0 -100
  84.  
  85.             ]
  86.         }
  87.         ROUTE world-TIMER.fraction_changed TO Box02-POS-INTERP.set_fraction
  88.         ROUTE Box02-POS-INTERP.value_changed TO Box02.set_translation
  89.     ]
  90. }
  91. DEF Camera01 Viewpoint{
  92.     position 2.983 113.4 362.3
  93.     orientation 0.9614 -0.2725 -0.03926 -0.2975
  94.     fieldOfView 0.6024
  95.     description "Camera01"
  96. }
  97. DEF Camera01.Target Transform {
  98.     translation -28.44 0 -21.85
  99.     children [
  100.     ]
  101. }
  102.